import request from '@/utils/request';

//批量删除课件
export const deleteTest = (list) => {
    return request({
        url: '/eduM2/eduTest/deleteTest',
        method: 'post',
        data: list
    })
}

//新增试卷
export const addTest = (row) => {
    return request({
        url: '/eduM2/eduTest/addTest',
        method: 'post',
        data: row
    })
}

//试卷上架/下架
export const updateTestStatus = (id, status) => {
    return request({
        url: '/eduM2/eduTest/updateTestStatus/' + id + '/' + status,
        method: 'get',
        params: {
            id,
            status
        }
    })
}

//修改试卷信息
export const updateTest = (row, testId) => {
    return request({
        url: '/eduM2/eduTest/updateTest/' + testId,
        method: 'post',
        data: row
    })
}

//分页查询试卷信息
export const queryTestPaperList = (params, current, limit, companyId) => {
    return request({
        url: '/eduM2/eduTest/pageTestCondition/' + companyId + '/' + current + '/' + limit,
        method: 'post',
        data: params
    })
}


